Welcome![Sign In][Sign Up]
Location:
Search - lexical analyzer for c

Search list

[Other resourceLexSeu

Description: 东南大学 课程设计 lex部分 说 明 **本次实验在Visual C++6.0环境下开发** 主要有以下文件: 1 词法分析器 lex.cpp 2 头文件 lex.h 3 测试文件 lex.l.txt lex工具的使用方法 编译运行 lex.cpp/lex.h,这样就将lex.l.txt转换成Cpp语言程序yylex.cpp 然后使用VC++6.0将lexyy.cpp编译成可执行程序, 这样就识别出了lex.l.txt中的正规表达式 打印出的字幕代表了识别出相应正规表达式时的动作。-Southeast University curriculum design lex ** Note part of this experiment in Visual C 6.0 open environment ** fat mainly in the following documents : a lexical analyzer lex.cpp two documents lex.h three test documents for lex.l.txt lex with the use of compiler running lex.cpp / lex.h. This will be converted into tracing lex.l.txt Language Program yylex.cpp then use the VC 6. 0 to lexyy.cpp compiled executable. This lex.l.txt identified by the formal expression of subtitles printed out on behalf of the formal identification of the corresponding table TAT-time action.
Platform: | Size: 10635 | Author: myname | Hits:

[ELanguage实验一、简单的扫描器设计

Description: 国防工业出版社的编译原理的词法分析器的编制的c语言原程序-defense industry publishers compile the lexical analyzer principle the establishment of procedures for the original language c
Platform: | Size: 15198 | Author: 秦汉 | Hits:

[ELanguageWANG词法分析-编译

Description: 一个简单的词法分析器,1代表字符,2代表关键字(命令字),4带表算符界符, 注:要把wangs.txt这个文件放在桌面上,然后在这个TXT里写上你要识别的语句。然后保存后关毕,在运行WANG词法分析.EXE进行词法分析。 完成识别后,会在相应的词面前出现以上代号。暂不能对数字进行识别。因为在某种请况下数字也可表是为字符……稍有困难,但完成老师的针对程序段:area=b+c*d。那简直是小菜一碟。-a simple lexical analyzer, a representative character, the two representatives keyword (command word), with four tables operator sector website Note : The wangs.txt the document on the desktop, then the TXT Lane write you to identify words. Then preserved customs Albert, running WANG lexical analysis. EXE for lexical analysis. After completing the identification, in the appropriate words appear in front of the above code. Provisional figures for the right not to identify. Because of the status of requests under certain figures might be for the characters ... the slightest difficulty, but the completion of procedural teachers : area = b, c * d. It is simply to touch.
Platform: | Size: 11528 | Author: linlins | Hits:

[ELanguageWANG词法分析-编译

Description: 一个简单的词法分析器,1代表字符,2代表关键字(命令字),4带表算符界符, 注:要把wangs.txt这个文件放在桌面上,然后在这个TXT里写上你要识别的语句。然后保存后关毕,在运行WANG词法分析.EXE进行词法分析。 完成识别后,会在相应的词面前出现以上代号。暂不能对数字进行识别。因为在某种请况下数字也可表是为字符……稍有困难,但完成老师的针对程序段:area=b+c*d。那简直是小菜一碟。-a simple lexical analyzer, a representative character, the two representatives keyword (command word), with four tables operator sector website Note : The wangs.txt the document on the desktop, then the TXT Lane write you to identify words. Then preserved customs Albert, running WANG lexical analysis. EXE for lexical analysis. After completing the identification, in the appropriate words appear in front of the above code. Provisional figures for the right not to identify. Because of the status of requests under certain figures might be for the characters ... the slightest difficulty, but the completion of procedural teachers : area = b, c* d. It is simply to touch.
Platform: | Size: 11264 | Author: linlins | Hits:

[ELanguageLexicalAnalyzer3

Description: 用c#编写的c语言词法分析器,预处理注释,并使用数据库查询关键字. 注意数据库需要重新连接,使用microsoft jet 4.0,数据库文件为keytable.mdb-prepared with the c language lexical analyzer, pretreatment Notes and the use of database queries. databases need to re-connect microsoft used jet 4.0, database files for keytable.mdb
Platform: | Size: 97280 | Author: 郭靖 | Hits:

[ELanguageLex_Yacc_Parser

Description: 语法分析器lex和词法分析器yacc的C++语言实现 1.Lex (1)Lex输入文件的解析 (2)正规表达式的解析 (3)一个正规表达式到NFA的转换算法实现 (4)多个NFA的合并 (5)NFA的确定化和最小化算法实现 (6)返回状态与返回内容的对应 2.Yacc (1)Yacc输入文件的解析 (2)上下文无关文法到对应LR(1)文法的下推自动机的构造 (3)LR(1)文法的下推自动机到相应分析表的构造 (4)LR(1)总控程序的构造(查表程序) (5)符号表的构建与相应管理程序 (6)语义动作程序的加入 环境:Visual Studio.NET 2003-Parser lex and yacc lexical analyzer C language 1.Lex (1) Lex lose into the analytical document (2) Analysis of the formal expression (3) a formal expression of the NFA conversion algorithm (4 ) more than the combined NFA (5) NFA and the determination of the smallest algorithm (6) to return to state and the return of the contents 2.Yacc counterparts (1) Yacc the analytical input file (2) context-free grammar to the corresponding LR (1) grammar pushdown automata Construction (3) LR (1) grammar pushdown automata corresponding to the tectonic analysis table (4) L R (1) General procedures for the control structure (look-up table) (5) Construction of the symbol table with the corresponding management procedures (6) semantic action procedures to the environment : Visual Studio 2003
Platform: | Size: 40960 | Author: 尤冉 | Hits:

[ELanguageWordAnalysis2

Description: 用c++语言编写的词法分析器源代码,很适合做课程设计。-c language used in the preparation of a lexical analyzer source code, is suitable for curriculum design.
Platform: | Size: 29696 | Author: 张智伟 | Hits:

[Otherbyyl_cffxq

Description: 编译原理:词法分析器(C++实现) 将PASCAL的源程序,即相应字符流转换成内部表示,并对标识符填写相应的符号表供编译程序以后各阶段使用,输出的单词符号格式为二元组(单词种别,单词在标识符表中的地址),标识符表格式有“序号”和“标识符本身的值”两项。-compiler : lexical analyzer (C achieved) will PASCAL source, that is, replaced by the corresponding characters in the internal circulation, also fill in the corresponding identifier of the symbol table compiler for the subsequent stages, Word output format for binary symbols (words of other species, the identifier word in the address table) Table format identifier "serial number" and the "value of the identifier" 2.
Platform: | Size: 10240 | Author: Snake | Hits:

[ELanguageSCANNER..CIFA

Description: c语言编写的词法分析器 可以用于PASCAL语言-c language prepared by the lexical analyzer can be used for language PASCAL
Platform: | Size: 3072 | Author: 李雪莹 | Hits:

[ELanguage1

Description: 这个程序为C++编写的词法分析器,能够简单的分析一段代码,供学习之用。-This procedure C++ Prepared lexical analyzer that can analyze a simple piece of code for learning purposes.
Platform: | Size: 2048 | Author: wanggang | Hits:

[ELanguagecifafenxi

Description: 词法分析器的实现,1) 输入:字符串(待进行词法分析的源程序),输出:由(种别码,自身值)所组成的二元组序列。 2) 功能: a. 滤空格 b. 识别保留字 c. 识别标识符 d. 拼数 e. 拼复合单词: 例如: >=、 <=、 := 3) 检查如下错误: a. 程序语言的字符集以外的非法字符 b. 单词拼错,如9A88,而对于将begin拼写成begon的错误,只须把begon当成标识符即可 -Lexical analyzer realize, 1), type: string (to be carried out lexical analysis of source code), output: from (other kinds of code, its own value) which consists of binary sequences. 2) Function: a. filter b. Identification of spaces reserved words c. hard d. identifier to identify a number of e. hard compound word: For example:
Platform: | Size: 1024 | Author: 刘月 | Hits:

[ELanguagebianyiqi1

Description: 设计SAMPLE语言的词法分析器 检查要求: a] 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音); b] 请求输入测试程序名,键入程序名后自动开始词法分析并输出结果; c] 输出结果为单词的二元式序列(样式见样板输出1和2);-Design SAMPLE language lexical analyzer inspection requirements: a] start the process, the first output of the author' s name, class, study number [available in Chinese, English or Pinyin] b] a request to enter the test program name, type the program name automatically begin after lexical analysis and output c] output results for the word binary sequence [see sample output Style 1 and 2]
Platform: | Size: 6144 | Author: lilianjie | Hits:

[Compress-Decompress algrithmsLL1

Description: c++词法分析器。可以分析简单的输入字符串。希望对大家有帮助。-c++ lexical analyzer. Easy to analyze the input string. I hope there is help for everyone.
Platform: | Size: 970752 | Author: 木子 | Hits:

[ELanguagefuncdraw

Description: 构造词法分析器和语法分析器进行绘图,学编译的时候可以研究研究,用C写的-Lexical analyzer and syntax structure analyzer for mapping, learning can be studied when the compiler research, written by C
Platform: | Size: 50176 | Author: jiangniao | Hits:

[ELanguagescan

Description: 编译原理实验实现的C—语言的词法分析器!对编译原理初学者非常有用-Experimental realization of the principle of compiled C-language lexical analyzer! The principle of the compiler is very useful for beginners! ! !
Platform: | Size: 305152 | Author: 童华兵 | Hits:

[ELanguageLR

Description: 1.实验目的 设计一个LR分析器,实现对表达式语言的分析,加深对LR语法分析方法的基本思想的理解,掌握LR分析器设计与实现的基本方法。 2.实验要求 建立文法及其LR分析表表示的数据结构,设计并实现一个LALR(1)的分析器,对源程序经词法分析后生成的二元式代码流进行分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。 3.实验内容 (1)文法描述及其LALR(1)分析表 描述表达式语言的文法G如下: -1. The experiment was to design a LR parser, the realization of the analysis of the expression language, better understanding of the LR parsing method to understand the basic idea of the master LR parser design and implementation of the basic method. 2. Experiment called for the establishment of grammar and LR analysis table that the data structure, design and realization of a LALR (1) of the analyzer, lexical analysis of source code generated by the binary-type code flow analysis, if the input strings is the definition of grammar sentence is the output " yes" , otherwise output " no." 3. Experimental (1) grammar description and LALR (1) Analysis of the expression language described in Table G of the grammar are as follows:
Platform: | Size: 289792 | Author: sh_xj | Hits:

[ELanguagecffx

Description: c++语言描述~词法分析器~可以通过文件流输入输出需要进行分析的语句~-c++ language description ~ ~ lexical analyzer can document the need for input and output flow analysis statement ~
Platform: | Size: 816128 | Author: hsh | Hits:

[ELanguagelexical_analyzer

Description: C语言词法分析器 by wpc_LK 这是一个简单的词法分析器,不能避免的存在错误请大家指出予以纠正,谢谢! 示例语句 include<stdio.h> int main{ int a=3,b=4,c if((a+b)==7)c=1 else c=0 return 0 } 输入 exit 退出程序。-C language lexical analyzer by wpc_LK This is a simple lexical analyzer can t avoid that there re some errors here,please correct, thank you! for exzample: include<stdio.h> int main{ int a=3,b=4,c if((a+b)==7)c=1 else c=0 return 0 } input exit quit the program.
Platform: | Size: 12288 | Author: wzl | Hits:

[ELanguagescan

Description: 单独分离出来的C-手工词法分析器,需要自己建立一个工程来运行本程序。为《编译原理与实践》一书之后的实验题的代码。-Single isolated C-hand lexical analyzer, needs its own to establish a project to run this program. For " Compiler Construction Principles and Practice," a book after the experiment of the code.
Platform: | Size: 4096 | Author: 飞鱼 | Hits:

[OtherLexical_Analyzer

Description: Title: Lexical Analyzer -Parses forwards and backwards. -Scans forwards and backwards. -Get the delimiter that was found. -Get the offset at where the token was started. -Get the current offset of the parser. -Add any number of delimiters. -Support for delimiter lists. Instead of removing all delimiters and adding one by one, just set the delimiter list. Can be used for easier parsing out of comments. -Unicode/Ansi Support Included is also 5 tests showing all the functions in action. Sample text is mostly a snippet of C++ source code except for one test. Shows the ease of use for parsing with support multiple delimiters.
Platform: | Size: 63488 | Author: SC | Hits:
« 1 2 3 45 6 »

CodeBus www.codebus.net